<?php

class McCube_Router_Exception extends McCube_Exception{

    protected function _renderAjax(){
        return $this->_renderBrowser();
    }

    protected function _renderBrowser(){
        return $this->getMessage()
            .' [ <span style="color:green;">'.$this->_extraDatas['route'].'</span> ]'
            .' '.$this->getLitteralCode()
        ;
    }

    protected function _renderConsole(){
        return $this->getMessage()
            .' [ '.$this->_extraDatas['route'].' ]'
            .' '.$this->getLitteralCode()
        ;
    }


}